package basicType;

import java.util.Random;

/**
 * @author chenxin
 * @time 2017-05-06-11:25
 */
public class FinalTest {
    public  final int a = 1;  // 编译时常量

    public static final int b = 2; // 编译时常量

    public static final Integer c = 3; // 非编译时常量

    public static final Type TYPE = Type.D;  // 非编译时常量

    public final int j;  // 非编译时常量

    public static final long k = b - 1; // 编译时常量

    public static final int m = new Random().nextInt();

    FinalTest(int j){
        this.j = j;
    }

    static{
        System.out.println("触发类初始化");
    }
}
